package com.study.manage.dal;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.study.manage.domain.OrgShop;
import com.study.manage.domain.enumm.LiveDieState;
import com.study.manage.domain.enumm.OrgShopType;


public interface OrgShopRepository extends PagingAndSortingRepository<OrgShop, Long> {

    OrgShop findByUserIdAndTypeAndState(Long userId, OrgShopType type, LiveDieState state);

    List<OrgShop> findByUserIdAndState(Long userId, LiveDieState state);

}
